<!--
	Carnegie Mellon University
	School of Computer Science
	MSIT eBusiness Technology

	Team 8 - Infinity (2011 Spring)
	infinity-team8@googlegroups.com

	Professor: Jeffrey L. Eppinger
	Program Faculty: Sujata Telang
-->


<jsp:include page="employee-template-top.jsp" />
<jsp:include page="employee-topnav.jsp" />
<%@ page import="databean.CustomerBean" %>

<div id="header">
	<h1>View Customer Account</h1>
</div>
<jsp:include page="employee-sidebar.jsp" />
<div id="content">
<div id="form-wrapper">
<jsp:include page="employee-error-list.jsp" />
	<form method="POST" action="employee-view-customer-account.do">
	<div class="line-wrap">

			<label>Customer (Username)  </label>
			<div class="field">
					<select style="margin-left:-250px" name="userName">
						<%
							CustomerBean[] customers = (CustomerBean[]) request.getAttribute("customerList");
							
							for (CustomerBean customer : customers) {
						%>
							<option value="<%=customer.getUserName()%>"><%=customer.getFirstName()%> <%=customer.getLastName()%> (<%=customer.getUserName()%>)</option>
						<%
							}
						%>
					</select>
				</div>
	</div>

					<div class="button"><input type="submit" name="button" value="View this customer!"/></div>

	</form>
</div>
</div>
<jsp:include page="footer.jsp" />
